package com.crud.generator.dto.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

/**
 * 单表代码生成结果。
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SingleGenerationResponse {

    private String tableName;

    private String entityName;

    private int columnCount;

    private boolean hasAutoIncrement;

    private String packagePrefix;

    private String author;

    private String projectName;

    private String projectDescription;

    private boolean enableRedis;

    private boolean enableSecurity;

    @Builder.Default
    private List<GeneratedFile> files = Collections.emptyList();

    private CodePreviewBundle preview;
}
